<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
  <head>
	  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%= h(yield(:title) || "Untitled") %></title>
    <%#= stylesheet_link_tag 'application' %>
    <%= yield(:head) %>
  </head>
  <body>
    <div id="header">
      <ul>
        <li><%= link_to 'Home', root_path %></li>
        <li><%= link_to 'Management', admin_path %></li>
      </ul>
    </div>
    
    <div id="container">
      <%- flash.each do |name, msg| -%>
        <%= content_tag :div, msg, :id => "flash_#{name}" %>
      <%- end -%>

      <%- if show_title? -%>
        <h1><%=h yield(:title) %></h1>
      <%- end -%>
      
      <%= yield %>
    </div>
  </body>
</html>
